'''
无论是类属性，私有属性. 实例可以通过引用或（内部通过self）引用
'''
class Employee:
    __companyName = "逸涵工作室"
    shortName = "逸涵"
    def __init__(self):
        # 在初始化定义的属性是对象实例属性
        self.__companyAddr = "泊林春天小区"
        self.__companyName = "逸涵工作室2"
        print(self.shortName)

print(Employee._Employee__companyName)
a = Employee()


print(a.__dict__)
print(Employee.__dict__)
## 私有变量的实现是通过改名
print(a._Employee__companyName)
print(Employee._Employee__companyName)

print(a.shortName)
print(Employee.shortName)